import ListPageContainer from "@/components/ListPageContainer/index.vue";

const listPageMixins = {
  components: {
    ListPageContainer,
  },
  data() {
    return {
      listData: [],
    }
  },
  methods: {
    goInfoPage(currentItem) {
      this.$emit('goInfoPage', currentItem)
    },
    resetQuery() {
      this.resetForm("queryForm")
      this.getListData()
    },
    addData() {
      this.$emit('goInfoPage', {})
    },
    exportData() {

    }
  },
  async created() {
    if (this.awaitMapLoaded && typeof this.awaitMapLoaded == 'function'){
      await this.awaitMapLoaded()
    }
    this.getListData()
  }
}

export {listPageMixins}
